/**
 * 
 */
package de.guidoludwig.jtm.client.artists;

import javax.swing.JComponent;
import javax.swing.table.AbstractTableModel;

import com.jgoodies.binding.adapter.BasicComponentFactory;
import com.jgoodies.binding.list.SelectionInList;

import de.guidoludwig.af.AbstractHomeView;
import de.guidoludwig.jtm.domain.Artist;

/**
 * @author guido
 *
 */
public class ArtistHomeView extends AbstractHomeView<Artist> {

	public ArtistHomeView(ArtistHomeModel model) {
		super(model);
		JComponent htmlPreview = BasicComponentFactory.createLabel(model.getSelectionHTMLModel());
		setPreview(htmlPreview);
	}

	@Override
	protected AbstractTableModel getTableFormat(SelectionInList<Artist> sil) {
		return new ArtistTableFormat(sil);
	}
	
}
